

/**
 * @file   test_logic_analyzer001.c
 * @brief  Testing with Logic analyzer: Test 1 SYSTEM and 1 BRR with quantum not equal to 0
 * Expected Results: 10000...
 */
#include "../header/common.h"
#include "../header/os.h"
#include "../header/uart.h"
#include "../header/trace.h"
#ifdef test_logic_analyzer001

const unsigned char PPP[] = {};
const unsigned int PT = sizeof(PPP)/2;
EVENT* print_event;
extern uint16_t trace_counter;

void generic_task(void)
{
	for (;;) {
    	//PORTD ^= _BV(PORTD7);
		PORTD |= _BV(PORTD7);
    	//PORTD &= 0x00;

	}
}

void generic_task2(void)
{
	for (;;) {
    	//PORTD ^= _BV(PORTD7);
		//PORTD |= _BV(PORTD7);
    	PORTD &= 0x00;
	}
}

int main(void) {
	//use pins 4,5,6 and 7 on Port D for output
		DDRD = (1<<PORTD4) | (1<<PORTD5) | (1<<PORTD6) | (1<<PORTD7);
	UART_BPS bitrate = UART_38400;

    Task_Create(generic_task,0, BRR, 1);
    Task_Create(generic_task2,0, BRR, 1);

    return 0;
}

#endif
